package com.itheima.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.bean.Dish;
import com.itheima.common.pageParm;
import com.itheima.dto.DishDto;

import java.util.List;

public interface dishService {

    List<DishDto> findByCategoryId(long categoryId, Integer status);

    int add(DishDto dishDto);

    IPage<DishDto> findPage(pageParm pageParm);

    int update(DishDto dishDto);

    int delete(List<Long> ids);

    public int updateStatusByIds(List<Long> ids, int status);


    Dish findByDishId(Long dishId);
}
